﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PEAnalyzer.ModeView.PEInfoPage
{
    internal class ImportModuleItem : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private ObservableCollection<ImportFunctionItem> m_strImportFunctionList = new ObservableCollection<ImportFunctionItem>();

        private string m_strModuleName;

        public string ModuleName
        {
            get => m_strModuleName;

            set
            {
                m_strModuleName = value;
                this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("ModuleName"));
            }
        }

        public ObservableCollection<ImportFunctionItem> ImportFunctions
        {
            get => m_strImportFunctionList;
            set
            {
                m_strImportFunctionList = value;
                this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("ImportFunctions"));
            }
        }

        public override string ToString() { return m_strModuleName; }
    }
}
